import React from "react";
import {render} from "react-dom";

var NotesList = React.createClass({
render: function() {
    return (
    <ol>
        {
        React.Children.map(this.props.children, function (child) {
            return <li>{child}</li>;
        })
        }
    </ol>
    );
}
});

render(
<NotesList>
    <span>hello</span>
    <span>world</span>
    <span>yanhaijiang</span>
    <span>wacth</span>
</NotesList>,
document.getElementById('app')
);